package com.tanhua.recommend.msg;


import com.tanhua.recommend.util.MailUtil;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Service;

@Service
@RocketMQMessageListener(topic = "mailTopic", consumerGroup = "mailConsumer")
public class MailConsumer implements RocketMQListener<String> {
    @Override
    public void onMessage(String email) {
        MailUtil.sendMail(email, "环信请求失败，请检查账户状态！！！");
    }
}
